翻訳と辞書
Words near each other
・ X (Xzibit song)
・ X + Y sorting
・ X -Cross-
・ X 2000
・ X Ambassadors
・ X and Others v Austria
・ X and Y bosons
・ X Andromedae
・ X Anniversarium
・ X Article
・ X Athena Widgets
・ X band
・ X Band Satellite Communication
・ X bar
・ X Bar X Boys
X BitMap
・ X boat (dinghy)
・ X Brands
・ X Brigade, Royal Horse Artillery
・ X Caeli
・ X Cancri
・ X Carinae
・ X Centauri
・ X chromosome
・ X Clan
・ X class
・ X Clips
・ X Club
・ X Company
・ X Condominium


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

X BitMap : ウィキペディア英語版
X BitMap

In computer graphics, the X Window System used X BitMap (XBM), a plain text binary image format, for storing cursor and icon bitmaps used in the X GUI. The XBM format was replaced by XPM for X11 in 1989.
==Format==
XBM files differed markedly from most image files in that they took the form of C source files. This meant that they could be compiled directly into an application without any preprocessing steps, but it also made them far larger than their raw pixel data. The image data was encoded as a comma-separated list of byte values, each written in the C hexadecimal notation, '0x13' for example, so that multiple bytes are used to express a single byte of image information.
XBM data typically appeared in headers (.h files) and consisted of a series of static unsigned char arrays containing the monochrome pixel data. They featured one array per image stored in the header. The following piece of C code exemplifies an XBM file:

#define test_width 16
#define test_height 7
static char test_bits[] = ;

In place of the usual image-file-format header, XBM files had two or four #define statements. The first two #defines specified the height and width of the bitmap in pixels. The second two, if they existed, specified the position of any hotspot within the bitmap. (Programmers used a hotspot within the image for bitmapped cursors to define where to position the "pointer" of the cursor, generally at 0,0.)
The image data consisted of a line of pixel values stored in a static array. Because a single bit represented each pixel (0 for white or 1 for black), each byte in the array contained the information for eight pixels, with the upper left pixel in the bitmap represented by the low bit of the first byte in the array. If the image width did not match a multiple of 8, the display mechanism ignored and discarded the extra bits in the last byte of each row.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「X BitMap」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.